package johnsen.id.project;

import java.awt.event.KeyEvent;

public class HelpState {
	public static void instructions() {
		while (true){
			// If player hits escape, it whisks them back to the menu
			if (StdDraw.isKeyPressed(KeyEvent.VK_ESCAPE)){
				MenuState.menu();
			}
			// set screen to black
			clear();	
			
			// load all the images and such
			render();
			// display and pause for 20 milliseconds
			StdDraw.show(15);
		}
	}
	
	public static void clear(){
		StdDraw.clear(StdDraw.BLACK);
	}
	
	public static void render(){
		StdDraw.setPenColor(StdDraw.RED);
		StdDraw.filledRectangle(-0.15, .55, 1, .009);
		StdDraw.picture(-0.15, .85, "res/howToPlay.png");
		StdDraw.picture(0, -0.1, "res/instruction.png");
	}
	
}
